import request from '@/utils/request'

// 查询版权图列表
export function listCopyright(query) {
  return request({
    url: '/system/copyright/list',
    method: 'get',
    params: query
  })
}

// 查询版权图详细
export function getCopyright(id) {
  return request({
    url: '/system/copyright/' + id,
    method: 'get'
  })
}

// 新增版权图
export function addCopyright(data) {
  return request({
    url: '/system/copyright',
    method: 'post',
    data: data
  })
}

// 修改版权图
export function updateCopyright(data) {
  return request({
    url: '/system/copyright',
    method: 'put',
    data: data
  })
}

// 删除版权图
export function delCopyright(id) {
  return request({
    url: '/system/copyright/' + id,
    method: 'delete'
  })
}
